package com.student.work.mapper;

import com.student.work.model.UserSalaryDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Mapper
@Repository
public interface UserSalaryDetailMapper {

    int insert(UserSalaryDetail detail);

    int update(UserSalaryDetail detail);

    int getCount(@Param("studentId") long studentId,
                 @Param("jobId") Long jobId);

    List<UserSalaryDetail> getList(@Param("pageNum") int pageNum,
                                   @Param("pageSize") int pageSize,
                                   @Param("studentId") long studentId,
                                   @Param("jobId") Long jobId);

    Date getLastDate(@Param("studentId") long studentId,
                     @Param("jobId") long jobId);
}